/*
 * Node.cpp
 *
 *  Created on: 05/09/2011
 *      Author: george
 */

#include "node.h"


Node::Node(in_addr addr) : Host(addr) {
	this->adjacencia = new Adjacencia();
}

Adjacencia* Node::getAdjacencia() const{
	return this->adjacencia;
}

Node::~Node(){
	delete this->adjacencia;
}

bool Node::operator!=(Node &rhs){
	return rhs.ip != ip;
}

bool Node::operator==(Node &rhs){
	return rhs.ip == ip;
}

bool Node::operator>(Node &rhs){
	return ip > rhs.ip;
}

bool Node::operator<(Node &rhs){
	return ip < rhs.ip;
}


